package com.gylang.print.richtext.component;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * @author gylang
 * data 2021/7/13
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BaseRichTable extends BaseRich {

	/** 每一行数据 */
	private List<List<List<BaseRich>>> rows = new ArrayList<>();

	public void setRow(List<List<BaseRich>> richStyle) {
		rows.add(richStyle);
	}

	@Override
	public float width() {
		return 0;
	}

	@Override
	public float height() {
		return 0;
	}

	@Override
	public boolean notFillBr() {
		return false;
	}
}
